const Controller = require("egg").Controller;

class CompanyController extends Controller {

  // 更新公司信息
  async update() {
    const { ctx, service } = this;

    const { Co_ID } = ctx.user;

    const { logoText, logo } = ctx.request.body;

    const payload = {
      Co_Logo_Text: logoText,
      Co_Logo: logo,
    };

    const res = await service.companyService.update(Co_ID, payload);

    ctx.helper.success({ ctx, res });
  }
}


module.exports = CompanyController
